package com.movie.common.utils;

/**
 * @author JF-PJJ
 */
public class NumberUtils {
    public static Integer objToInteger(Object obj){
        if("".equals(obj)||obj==null){
            return null;
        }
        return Integer.parseInt(obj.toString());
    }

    public static Double objToDouble(Object obj){
        if("".equals(obj)||obj==null){
            return null;
        }
        return Double.parseDouble(obj.toString());
    }
}
